#ifndef __losor_obj_life_h__
#define __losor_obj_life_h__

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _life
{
    long ref;
} life;

typedef struct _any
{
    life l;
} any;

void init_life( void *obj );
long add_ref( void *obj );
long release( void *obj );

#define control_life()    life __$any_for_life_control$__

#ifdef __cplusplus
};
#endif

#endif // __losor_obj_life_h__